package com.sayimo.maker.mall.orders.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sayimo.framework.common.AbstractBaseService;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.framework.exception.ServiceException;
import com.sayimo.maker.mall.orders.dao.OrdersGoodsNormsInfoInterfaceDao;
import com.sayimo.maker.mall.orders.service.OrdersGoodsNormsInfoInterfaceService;
import com.sayimo.maker.mall.orders.vo.OrdersGoodsNormsInfo;


@Service(value = "ordersGoodsNormsInfoInterfaceService")
public class OrdersGoodsNormsInfoInterfaceImplService extends AbstractBaseService implements OrdersGoodsNormsInfoInterfaceService {

	@Resource(name = "ordersGoodsNormsInfoInterfaceDao")
	private OrdersGoodsNormsInfoInterfaceDao ordersGoodsNormsInfoInterfaceDao;

	@Override
	public List<OrdersGoodsNormsInfo> queryOrdersGoodsNormsInfoByOrdersId(String statusType,Integer ordersId,Integer customerId) throws ServiceException {
		List<OrdersGoodsNormsInfo> ordersGoodsNormsInfos = null;
		try {
			Map<String, Object> pm = new HashMap<String, Object>();
			pm.put("ordersId", ordersId);
			pm.put("customerId", customerId);
			ordersGoodsNormsInfos = ordersGoodsNormsInfoInterfaceDao.queryOrdersGoodsNormsInfoByOrdersId(pm);
		} catch (DaoException de) {
			throw new ServiceException(de);
		}
		return ordersGoodsNormsInfos;
	}
}
